package com.qidian.mes.pojo;

import lombok.Data;

import java.util.Date;
import java.util.Objects;

/**
 * @Author 32郗建狄
 * @Company GX631
 * Time 2023/10/30 18:02
 * Description
 */
@Data
public class MdWorkShop {
    private Long workshopId; //车间ID
    private String workshopCode; //车间编码
    private String workshopName; //车间名称
    private Double area; //面积
    private String charger; //负责人
    private String enableFlag; //是否启用
    private String remark; //备注
    private String createBy; //创建人
    private Date createTime; //创建时间
    private String updateBy; //更新人
    private Date updateTime; //更新时间
    private Long createTimeMills;       //
    private Long updateTimeMills;       //

    public Long getCreateTimeMills() {
        if (Objects.nonNull(this.createTime)) {
            return this.createTime.getTime();
        }

        return null;
    }

    public void setCreateTimeMills(Long createTimeMills) {
        this.createTimeMills = createTimeMills;
    }

    public Long getUpdateTimeMills() {
        if (Objects.nonNull(this.updateTime)) {
            return this.updateTime.getTime();
        }
        return null;
    }

    public void setUpdateTimeMills(Long updateTimeMills) {
        this.updateTimeMills = updateTimeMills;
    }
}
